package com.gress.shop.util;

/**
 *  作为业务异常抛出 , 所有是开心异常
 * */
public class HappyException extends RuntimeException {
    private String code;
    private static final long serialVersionUID = 1L;

    public HappyException() {
    }

    public HappyException(String code, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
    }

    public HappyException(String message, Throwable cause) {
        super(message, cause);
    }

    public HappyException(String message) {
        super(message);
    }

    public HappyException(String message, String code) {
        super(message);
        this.code = code;
    }

    public String getCode() {
        return this.code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public HappyException(Throwable cause) {
        super(cause);
    }

    public synchronized Throwable fillInStackTrace() {
        return this;
    }


}
